<template>
    <view :style="' background-color:'+item.style.bgColor+';padding:'+item.style.paddingTop+'rpx '+item.style.paddingLeft+'rpx'">
        <view v-if="item.style.isroll=='1'" >
            <u-swiper @click="toAdJump" indicator :height="item.style.height+'rpx'" radius="0" :list="item.data.image"></u-swiper>
        </view>
        <view v-else>
            <view  v-for="(image,index) in item.data.image" :key="index" @click="toAdJump(index)">
                <image :src="image.url" style="width: 100%;" mode="widthFix" :show-menu-by-longpress="$config.common.show_img_menu==1?true:false"></image>
			</view>
        </view>
    </view>
</template>
<script>

	export default {
        props: ['item'],
		data() {
			return {
            };
		},
        created(){
        },
        onShow(){
        },
		methods: {
			toAdJump(e){
				let item =  this.item.data.image[e];
				// console.log(item)
				this.$c.adJump(item,this.$config)
			}
		},
	}
</script>
<style>
    .swiper {
        height: 400rpx;
    }
    .swiper-item {
        display: block;
        height: 400rpx;
        line-height: 400rpx;
        text-align: center;
    }
    .menu swiper-item {
        display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        flex-wrap: wrap;
    }
	.hide-button{
		position: relative;
		display: block;
		margin-left: auto;
		margin-right: auto;
		padding-left: 0px;
		padding-right: 0px;
		box-sizing: border-box;
		text-align: center;
		text-decoration: none;
		line-height: 1;
		-webkit-tap-highlight-color: transparent;
		overflow: hidden;
		background-color: #fff;
		width: 100%;
		height: 100%;
		border: 0;
	}
	.hide-button::after{
		border: 0;
		background-color: none;
	}
</style>

